import instance from '../utils/request'
// import { getToken } from '../utils/token'

const editUserInfo = data => {
  return instance({
    method: 'PATCH',
    url: '/v1_0/user/profile',
    // headers: {
    //   Authorization: `Bearer ${getToken().token}`
    // }
    data
  })
}

const uploadPhoto = data => {
  return instance({
    method: 'PATCH',
    url: '/v1_0/user/photo',
    data
  })
}

export { editUserInfo, uploadPhoto }
